package com.arlin.spring.core.config;

/**
 * @ClassName: ConfigurationFactory
 * @Description: TODO
 * @Author: arlin
 * @Date: 2021/12/12
 */
public class ConfigurationFactory {

    public static Configuration getDefaultConfiguration() {
        return SingleConfigurationHolder.INSTANCE;
    }

    private static class SingleConfigurationHolder {

        private static final Configuration INSTANCE = buildConfiguration();

        private static Configuration buildConfiguration() {
            return new DefaultConfiguration();
        }
    }
}
